lcTIN_PntGetNext Home

Returns a handle to the point that is placed after the specified point in a TIN object.

 HANDLE lcTIN_PntGetNext (
   HANDLE hTIN,
   HANDLE hPnt
 );

Parameters
hTIN
  Handle to a TIN object.
hPnt
  Handle to a TIN point.

Return Value

  Handle to the point that is placed after hPnt in the points list.
If there are no points after hPnt, the function returns NULL.

See Also

  lcTIN_PntGetFirst


Code sample:
  // get coordinates of all TIN points
  HANDLE hTIN, hPnt;
  double X, Y, Z;
  hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" );
  if (hTIN != 0){
    hPnt = lcTIN_PntGetFirst( hTIN );
    while( hPnt != 0 ){
      X = lcPropGetFloat( hPnt, LC_PROP_TINPNT_X );
      Y = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Y );
      Z = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Z );
      // get next point
      hPnt = lcTIN_PntGetNext( hTIN, hPnt );
    }
  }